﻿using System;
using System.Collections.Generic;
using T.FAS.Runtime.Base.Entity;

namespace T.FAS.Runtime.Base.SGSPI
{
    public interface IChartService
    {
        /// <summary>
        /// 查询图表库
        /// </summary>
        /// <returns></returns>
        List<ChartLib> GetChartLibs();
        /// <summary>
        /// 查询图表列表
        /// </summary>
        /// <returns></returns>
        List<ChartInstanceApply> GetChartInstanceApplys(TargetType targetType, string targetID);
        /// <summary>
        /// 创建或更新
        /// </summary>
        /// <param name="chart"></param>
        Dictionary<string, string> CreateOrUpdateChart(ChartInstanceApply chart);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        Dictionary<string, string> DeleteChart(string id);
    }
}
